define([], function() {

geometry3d = {};

geometry3d.Vector = function(x, y, z) {
  this.x = x;
  this.y = y;
  this.z = z;
};

geometry3d.Vector.prototype.normalize = function() {
  var length = this.length();
  this.x /= length;
  this.y /= length;
  this.z /= length;
};

geometry3d.Vector.prototype.length = function() {
  return Math.sqrt((this.x * this.x) + (this.y * this.y) + (this.z * this.z));
};

geometry3d.unitVectorZ = function() {
  return new geometry3d.Vector(0, 0, 1);
};

return geometry3d;

});
